<?php include 'news_css_js.php'; ?>
<table width="988" cellspacing="0" cellpadding="0" border="0" align="center">
    <tbody><tr>
            <td width="9" background="/public/images/them/t.jpg">&nbsp;</td>

            <td width="970">
                <table width="970" cellspacing="0" cellpadding="0" border="0" align="center">

                    <tbody>
                        <?php include 'home_header.php'; ?>
                        <tr>
                            <td>
                                <div id="content-sidebar-wrap">

                                    <div class="hfeed" id="home-content">

                                        <div style="height: 210px;">
                                            <div id="slider-wrapper">
                                                <div id="slider" class="nivoSlider">
                                                    <a target="_blank" href=""><img src="/public/images/slider/15.jpg"></a>
                                                    <a target="_blank" href=""><img src="/public/images/slider/17.jpg"></a>
                                                    <a target="_blank" href=""><img src="/public/images/slider/18.jpg"></a>
                                                    <a target="_blank" href=""><img src="/public/images/slider/19.jpg"></a>
                                                    <a target="_blank" href=""><img src="/public/images/slider/20.jpg"></a>
                                                </div>
                                                <script type="text/javascript">
                                                    $(window).load(function() {
                                                        $('#slider').nivoSlider();
                                                    });
                                                </script>

                                            </div>
                                        </div>
                                        <div id="bycategory">

                                        <div class="top">
                                            <div class="title">
                                                <a class="Home" href="<?php echo $root_page;?>">Trang chủ</a> > <a href="<?php echo $root_page;?>/tintuc/">Tin tức</a>
                                                <?php foreach ($aryNewsParentCateogry as $key => $value) {?>
                                                > <a href="/tin/<?php echo $value['news_category_id'];?>/<?php echo $value['news_category_filter'];?>.html" title="<?php echo $value['news_category_name'];?>"><?php echo $value['news_category_name'];?></a>
                                                <?php } ?>
                                            </div>

                                            <div class="first">
                                                <a href="/chitiet/<?php echo $aryNewsFirst['news_id'];?>/<?php echo $aryNewsFirst['news_title_filter'];?>.html"><img class="fl" src="<?php echo $aryNewsFirst['news_large_image'];?>" title="<?php echo $aryNewsFirst['news_title'];?>" alt="<?php echo $aryNewsFirst['news_title'];?>"></a>
                                                <h1>
                                                    <a href="/chitiet/<?php echo $aryNewsFirst['news_id'];?>/<?php echo $aryNewsFirst['news_title_filter'];?>.html" title="<?php echo $aryNewsFirst['news_title'];?>">
                                                        <?php echo $aryNewsFirst['news_title'];?>
                                                    </a>
                                                </h1>
                                                <div class="NewsTime">
                                                    <?php if($aryNewsFirst['news_updated_date'] != '' && $aryNewsFirst['news_updated_date'] != '0000-00-00 00:00:00') {?>
                                                        <?php echo date('d/m/Y', strtotime($aryNewsFirst['news_updated_date']));?>
                                                    <?php } ?>
                                                </div>
                                                <p class="description">
                                                    <?php echo $aryNewsFirst['news_content_filter'];?>
                                                </p>
                                            </div>
                                            <p class="clear"></p>
                                        </div>
                                            
                                        <div class="medium">
                                            <?php foreach ($aryNews as $key => $value) {?>
                                            <ul>
                                                <li>
                                                    <h4>
                                                        <p>

                                                            <a href="/chitiet/<?php echo $value['news_id'];?>/<?php echo $value['news_title_filter'];?>.html" title="<?php echo $value['news_title'];?>">
                                                                <img class="fl" src="<?php echo $value['news_main_image'];?>" title="<?php echo $value['news_title'];?>" alt="<?php echo $value['news_title'];?>"/>
                                                                <?php echo $value['news_title'];?>
                                                            </a>
                                                        </p>
                                                    </h4>
                                                    <div class="NewsTime">
                                                        <?php if($value['news_updated_date'] != '' && $value['news_updated_date'] != '0000-00-00 00:00:00') {?>
                                                            <?php echo date('d/m/Y', strtotime($value['news_updated_date']));?>
                                                        <?php } ?>
                                                    </div>

                                                    <p class="description">
                                                        <?php echo $value['news_content_filter'];?>
                                                    </p>
                                                    <p class="clear"></p>
                                                </li>

                                            </ul>
                                            <?php if($key == 9){ break;} } ?>

                                        </div>
                                    <div class="bottom">
                                    <div class="newsother">
                                        Các tin khác
                                    </div>
                                    <div class="Underline"></div>
                                    <div class="list">
                                        <ul>
                                        <?php foreach ($aryNews as $key => $value) {?>
                                            <?php if($key > 2) {?>
                                            <li>
                                            <div class="description">
                                                <a class="bullet" href="/chitiet/<?php echo $value['news_id'];?>/<?php echo $value['news_title_filter'];?>.html" title="<?php echo $value['news_title'];?>">
                                                <?php echo $value['news_title'];?>
                                            </a>
                                            <span class="date">(<?php echo ($value['news_updated_date'] != '' && $value['news_updated_date'] != '0000-00-00 00:00:00') ? date('d/m/Y', strtotime($value['news_updated_date'])) : ''; ?>)</span>
                                            </div>
                                            </li>
                                            <?php } ?>
                                        <?php } ?>
                                        </ul>
                                    </div>
                                    <div class="Underline"></div>

                                </div>

                                    </div>

                                    </div><!-- end #content -->
                                    <div id="sidebar">
                                        <?php include 'news_right_support.php';?>
                                    </div>
                                </div>
                            </td>
                        </tr>


                        <tr>
                            <td valign="top" align="center">

                                <?php include 'home_footer.php';?>
                            </td>
                        </tr>


                    </tbody>
                </table>
            </td>
            <td width="9" background="/public/images/them/p.jpg">&nbsp;</td>
        </tr>
    </tbody>
</table>


